<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="../main.css" />
<title>Envio a Tienda</title>
</head>
<body>
<div id="container">
	<f:view>
		<h1>Envio a Tienda</h1>
		<h:dataTable id="tablaEnviar" value="#{enviosController.envios}" var="item"
		bgcolor="#F1F1F1" border="10" cellpadding="5" cellspacing="3" >
				
			<h:column>
			<f:facet name="header">
			<h:outputText value="ID Envio" />
			</f:facet>
				<strong><h:outputText value="11#{item.numEnvio}" /> </strong>
			</h:column>
			
			<h:column>
			<f:facet name="header">
			<h:outputText value="ID Centro" />
			</f:facet>
				<strong><h:outputText value="#{item.centroId}" /> </strong>
			</h:column>
			
			<h:column>
			<f:facet name="header">
			<h:outputText value="ID Tienda" />
			</f:facet>
				<h:outputText value="#{item.tiendaId}" />
			</h:column>
			
			<h:column>
			<f:facet name="header">
			<h:outputText value="Solicitud Distribucion ID" />
			</f:facet>
				<h:outputText value="#{item.numSolDist}" />
			</h:column>
			
			<!--
			<h:column>
			<f:facet name="header">
			<h:outputText value="PALC" />
			</f:facet>
				<h:outputText value="#{item.palc}" />
			</h:column>
			-->
			
			<h:column>
			<f:facet name="header">
			<h:outputText value="Referencia" />
			</f:facet>
				<h:outputText value="#{item.referencia}" />
			</h:column>
			
			<h:column>
			<f:facet name="header">
			<h:outputText value="Cantidad" />
			</f:facet>
				<h:outputText value="#{item.cantidad}" />
			</h:column>
						
		</h:dataTable>

		
		<h:form id="EnvTForm" >
			<h:commandButton id="botonEnviar" action="#{enviosController.enviar}" value="Generar" />
			<h:commandButton id="botonVolver" action="#{enviosController.back}" value="Volver" />
		</h:form>
	</f:view>
</div>


</body>
</html>